package org.popupcommunication.service;

import java.util.List;

import org.popupcommunication.model.Agenda;
import org.popupcommunication.model.User;
import org.popupcommunication.web.UserFormAdmin;
import org.popupcommunication.web.UserFormRegister;
import org.springframework.validation.Errors;

public interface UserManager  {

		boolean checkUserExists(String email, String pwd);
		boolean registerUser(UserFormAdmin f, String email, String password, Errors errors) ;
		boolean register(UserFormRegister f, Errors errors);
		List<Agenda> getEventsGroup(User toto);
		List<Agenda> getCurrentsEventsUsers(User u);
		List<Agenda> getCurrentsEventsPersoUsers(User u);		
		User findByEmail(String email);
		public void updateUser(User userToUpdate);
		List<User> getUsers();
		List<User> getUsersWaintingValidation();
		List<User> getAdmins();
	}
